<?PHP 
include '../../_classes/_layout.php';

$layout = new layout(2);
$layout->setTitle('- Modal Ajax');
//MODAL ============================================================================================================================================
$layout->setScripts('<script type="text/javascript" src="'. $layout->getDir() .'_componentes/modalAjax/js/modal.js"></script>');
$layout->setScripts('<link rel="stylesheet" type="text/css" href="'. $layout->getDir() .'_componentes/modalAjax/css/layout.css" media="screen, projection" />');
$layout->setScripts('<link rel="stylesheet" type="text/css" href="'. $layout->getDir() .'_componentes/modalAjax/css/modal.css" media="screen, projection" />');
//MODAL ============================================================================================================================================

print $layout->getLayout(); // IMPRIME O TOPO DO SITE
?>

<script type="text/javascript">
	$(function() {
		$('#clickMe').alertBox({
			href: 'success.php'
			// You must add a 
			// href page (success)
		});
	});
</script>

<div id="container">
    <div id="main" role="main">
        <a href="#" id="clickMe">Click para abrir o modal</a>
    </div>
</div>

<?PHP
print $layout->getLayoutFim();
?>
